package com.ktgj.pay.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.pay.mapper.InvoiceBusinesstypedimMapper;
import com.ktgj.pay.domain.InvoiceBusinesstypedim;
import com.ktgj.pay.service.IInvoiceBusinesstypedimService;

/**
 * 发票业务类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-24
 */
@Service
public class InvoiceBusinesstypedimServiceImpl implements IInvoiceBusinesstypedimService 
{
    @Autowired
    private InvoiceBusinesstypedimMapper invoiceBusinesstypedimMapper;

    /**
     * 查询发票业务类型
     * 
     * @param businessid 发票业务类型ID
     * @return 发票业务类型
     */
    @Override
    public InvoiceBusinesstypedim selectInvoiceBusinesstypedimById(Integer businessid)
    {
        return invoiceBusinesstypedimMapper.selectInvoiceBusinesstypedimById(businessid);
    }

    /**
     * 查询发票业务类型列表
     * 
     * @param invoiceBusinesstypedim 发票业务类型
     * @return 发票业务类型
     */
    @Override
    public List<InvoiceBusinesstypedim> selectInvoiceBusinesstypedimList(InvoiceBusinesstypedim invoiceBusinesstypedim)
    {
        return invoiceBusinesstypedimMapper.selectInvoiceBusinesstypedimList(invoiceBusinesstypedim);
    }

    /**
     * 新增发票业务类型
     * 
     * @param invoiceBusinesstypedim 发票业务类型
     * @return 结果
     */
    @Override
    public int insertInvoiceBusinesstypedim(InvoiceBusinesstypedim invoiceBusinesstypedim)
    {
        return invoiceBusinesstypedimMapper.insertInvoiceBusinesstypedim(invoiceBusinesstypedim);
    }

    /**
     * 修改发票业务类型
     * 
     * @param invoiceBusinesstypedim 发票业务类型
     * @return 结果
     */
    @Override
    public int updateInvoiceBusinesstypedim(InvoiceBusinesstypedim invoiceBusinesstypedim)
    {
        return invoiceBusinesstypedimMapper.updateInvoiceBusinesstypedim(invoiceBusinesstypedim);
    }

    /**
     * 批量删除发票业务类型
     * 
     * @param businessids 需要删除的发票业务类型ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceBusinesstypedimByIds(Integer[] businessids)
    {
        return invoiceBusinesstypedimMapper.deleteInvoiceBusinesstypedimByIds(businessids);
    }

    /**
     * 删除发票业务类型信息
     * 
     * @param businessid 发票业务类型ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceBusinesstypedimById(Integer businessid)
    {
        return invoiceBusinesstypedimMapper.deleteInvoiceBusinesstypedimById(businessid);
    }
}
